package com.bwie.gateway.config;

import cn.hutool.json.JSONArray;
import com.alibaba.fastjson.JSON;
import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName WhitesIgnoreConfig
 * @Description 放行白名单配置
 * @Author ShiYu.Cui
 * @Date 2024/1/23 19:27
 */
@Configuration
@ConfigurationProperties(prefix = "ignore")
@Data
@Log4j2
public class WhitesIgnoreConfig {

    private List<String> whites=new ArrayList<>();

    public void setWhites(List<String> whites){
        log.info("加载系统白名单请求，白名单：{}", JSON.toJSONString(whites));
        this.whites=whites;
    }

}
